package HP.yrr.p1;

public class Dog extends Pet {

    public Dog() {
    }

    public Dog(String name, int age, int healthy, int love) {
        super(name, age, healthy, love);
    }

    @Override
    public void petEat() {
        this.setHealthy(this.getHealthy() + 2);
        this.setLove(this.getLove() + 1);

        System.out.println("狗吃 健康值+2, 亲密度+1");
    }


    @Override
    public void petPlay() {
        this.setHealthy(this.getHealthy() + 1);
        this.setLove(this.getLove() + 2);
        System.out.println("狗玩 健康值+1, 亲密度+2");
    }

}
